package testops.top.dao;

import lombok.Data;
import org.springframework.context.annotation.Primary;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;
import java.util.Date;

@Data
@Table(name = "tb_user")
public class UserDao {
  @Id
  @KeySql(useGeneratedKeys = true)
  private Long id;
  private String userName;
  private String password;
  private String name;
  private long age;
  private long sex;
  private java.sql.Date birthday;
  private String note;
  private Date created;
  private Date updated;

}
